#!/usr/bin/env python
#This is the main program. It should be *very* simple.
import labjacku6_server
import sys
import os
if sys.argv[0][0] != '.':
    os.chdir('/usr/local/obs/labjack/')
sys.path.append('../common')
import server_socket
import find_port
f = find_port.FindPort()
Port = f.findPort('labjacku6')
lj=labjacku6_server.LabjackU6Server()
ss=server_socket.ServerSocket(Port, 'labjacku6', lj)	
ss.add_job(lj.heaterControl)
ss.add_job(lj.feedbackLoop)
ss.run()
ss.close()
